package com.ruoyi.travel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.travel.mapper.ScenicProfileMapper;
import com.ruoyi.travel.domain.ScenicProfile;
import com.ruoyi.travel.service.IScenicProfileService;

/**
 * 景点介绍Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class ScenicProfileServiceImpl implements IScenicProfileService 
{
    @Autowired
    private ScenicProfileMapper scenicProfileMapper;

    /**
     * 查询景点介绍
     * 
     * @param id 景点介绍主键
     * @return 景点介绍
     */
    @Override
    public ScenicProfile selectScenicProfileById(Long id)
    {
        return scenicProfileMapper.selectScenicProfileById(id);
    }

    /**
     * 查询景点介绍列表
     * 
     * @param scenicProfile 景点介绍
     * @return 景点介绍
     */
    @Override
    public List<ScenicProfile> selectScenicProfileList(ScenicProfile scenicProfile)
    {
        return scenicProfileMapper.selectScenicProfileList(scenicProfile);
    }

    /**
     * 新增景点介绍
     * 
     * @param scenicProfile 景点介绍
     * @return 结果
     */
    @Override
    public int insertScenicProfile(ScenicProfile scenicProfile)
    {
        return scenicProfileMapper.insertScenicProfile(scenicProfile);
    }

    /**
     * 修改景点介绍
     * 
     * @param scenicProfile 景点介绍
     * @return 结果
     */
    @Override
    public int updateScenicProfile(ScenicProfile scenicProfile)
    {
        return scenicProfileMapper.updateScenicProfile(scenicProfile);
    }

    /**
     * 批量删除景点介绍
     * 
     * @param ids 需要删除的景点介绍主键
     * @return 结果
     */
    @Override
    public int deleteScenicProfileByIds(Long[] ids)
    {
        return scenicProfileMapper.deleteScenicProfileByIds(ids);
    }

    /**
     * 删除景点介绍信息
     * 
     * @param id 景点介绍主键
     * @return 结果
     */
    @Override
    public int deleteScenicProfileById(Long id)
    {
        return scenicProfileMapper.deleteScenicProfileById(id);
    }
}
